|
|
|
|
|
|
|
Figure 13.9
An axonometric orthographic projection. |
|
|
|
|
|
|
|
|
While this type of projection may seem more complicated than the front, side, and top views, it is easy to build using translations, rotations, and the simpler orthographic projections. |
|
|
|
|
|
|
|
|
Suppose you want to project an object as shown in Figure 13.10. The focus point (Fx, Fy, Fz) will be projected to the origin. The direction of projection is given by the vector <Px, Py, Pz>. To build the transformation for this projection, follow these steps: |
|
|
|
|
|
|
|
|
1. Translate the focus (Fx, Fy, Fz) to the origin. |
|
|
|
|
|
|
|
|
2. Rotate to place the direction of projection in the Y-Z plane. |
|
|
|
|
|
|
|
|
3. Rotate to place the direction of projection in the Y axis. |
|
|
|
|
|
|
|
|
4. Project along the Y axis (top view). |
|
|
|
|
|
|
|
|
Once you have calculated the matrices necessary for each of these steps, you can combine them to make one matrix representing the complete transformation. |
|
|
|
|
|
|
|
|
Figure 13.11 shows the individual steps for projecting a cube with the focus at the cube's center. The direction of projection is drawn with a bold line so that it is easy to see. |
|
|
|
|
|
|
|
|
Example program Axon follows the steps one at a time to produce a display similar to Figure 13.11. You can use the left, right, up, and down arrow keys to make the program display different views of the intermediate steps in the projection. |
|
|
|
|
|
|
|
|
Figure 13.10
An axonometric orthographic projection of a cube. |
|
|
|
|
|